#coding:utf-8
from django.utils.translation import ugettext as _
from django.http import HttpResponse
from django.core.mail import send_mail

def hello(request):
    output = _('Welcome')
    return HttpResponse(output)

send_mail(
    '消息通知',
    'Welcome Tusiji',
    'tusiji501@163.com',
    ['861642919@qq.com'],
    fail_silently=False
)